package com.tjetc.view;

import com.tjetc.view.manage.DoctorManageView;
import com.tjetc.view.manage.DoctorView;
import com.tjetc.view.manage.MyselfView;
import com.tjetc.view.manage.VaccinationView;

import java.util.Scanner;

public class DoctorMainView {
    private Scanner scanner=new Scanner(System.in);
    public void start() {
        while (true){
            System.out.println("1.进入新生儿管理界面");
            System.out.println("2.进入疫苗有关界面");
            System.out.println("3.查看个人有关信息");
            System.out.println("0.返回上一级");
            int i= scanner.nextInt();
            switch (i){
                case 1:
                    babymanage();
                    break;
                case 2:
                    Vaccination();
                    break;
                case 3:
                    Myself();
                    break;
                case 0:
                    return;

            }
        }
    }

    private void Myself() {
        new MyselfView().start();
    }

    private void Vaccination() {
        new VaccinationView().start();
    }

    private void babymanage() {
        new DoctorManageView().start();
    }
}
